GdkScreen: Set reasonable limis for ::resolution
authorMatthias Clasen <mclasen@redhat.com>
Fri, 4 Jul 2014 06:01:53 +0000 (02:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 4 Jul 2014 06:01:53 +0000 (02:01 -0400)
Otherwise, the spinbutton in the inspectors property editor
explodes in order to make room for MAXDOUBLE.

gdk/gdkscreen.c

index a1ae7e722a427925cab15da3dd40e74d7d5cea3d..e2cbfb7d0d955401f5be91451f56813bf6f18a64 100644 (file)
@@ -98,8 +98,8 @@ gdk_screen_class_init (GdkScreenClass *klass)
                                   g_param_spec_double ("resolution",
                                                        P_("Font resolution"),
                                                        P_("The resolution for fonts on the screen"),
-                                                       -G_MAXDOUBLE,
-                                                       G_MAXDOUBLE,
+                                                       -1.0,
+                                                       10000.0,
                                                        -1.0,
                                                        G_PARAM_READWRITE|G_PARAM_STATIC_NAME|
                                                        G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));